package mysql

import "gorm.io/gorm"

type Problem struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30);not null;comment:标题"`
	Content string `gorm:"type:varchar(300);not null;comment:内容"`
	UserId  int64  `gorm:"type:int(11);not null;comment:用户id"`
	Hot     int64  `gorm:"type:int(11);not null;comment:问题热度"`
}
